.class public Lcom/instagram/creation/video/ui/VideoAcceptButton;
.super Landroid/widget/ImageButton;
.source "VideoAcceptButton.java"

# interfaces
.implements Lcom/instagram/creation/video/a/d;


# instance fields
.field private a:Lcom/instagram/creation/video/a/e;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 1
    .parameter "context"

    .prologue
    .line 20
    invoke-direct {p0, p1}, Landroid/widget/ImageButton;-><init>(Landroid/content/Context;)V

    .line 17
    sget-object v0, Lcom/instagram/creation/video/a/e;->d:Lcom/instagram/creation/video/a/e;

    iput-object v0, p0, Lcom/instagram/creation/video/ui/VideoAcceptButton;->a:Lcom/instagram/creation/video/a/e;

    .line 21
    invoke-direct {p0}, Lcom/instagram/creation/video/ui/VideoAcceptButton;->a()V

    .line 22
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 1
    .parameter "context"
    .parameter "attrs"

    .prologue
    .line 25
    invoke-direct {p0, p1, p2}, Landroid/widget/ImageButton;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    .line 17
    sget-object v0, Lcom/instagram/creation/video/a/e;->d:Lcom/instagram/creation/video/a/e;

    iput-object v0, p0, Lcom/instagram/creation/video/ui/VideoAcceptButton;->a:Lcom/instagram/creation/video/a/e;

    .line 26
    invoke-direct {p0}, Lcom/instagram/creation/video/ui/VideoAcceptButton;->a()V

    .line 27
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .locals 1
    .parameter "context"
    .parameter "attrs"
    .parameter "defStyle"

    .prologue
    .line 30
    invoke-direct {p0, p1, p2, p3}, Landroid/widget/ImageButton;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    .line 17
    sget-object v0, Lcom/instagram/creation/video/a/e;->d:Lcom/instagram/creation/video/a/e;

    iput-object v0, p0, Lcom/instagram/creation/video/ui/VideoAcceptButton;->a:Lcom/instagram/creation/video/a/e;

    .line 31
    invoke-direct {p0}, Lcom/instagram/creation/video/ui/VideoAcceptButton;->a()V

    .line 32
    return-void
.end method

.method private a()V
    .locals 2

    .prologue
    .line 41
    iget-object v0, p0, Lcom/instagram/creation/video/ui/VideoAcceptButton;->a:Lcom/instagram/creation/video/a/e;

    sget-object v1, Lcom/instagram/creation/video/a/e;->d:Lcom/instagram/creation/video/a/e;

    if-ne v0, v1, :cond_0

    const/4 v0, 0x1

    :goto_0
    invoke-virtual {p0, v0}, Lcom/instagram/creation/video/ui/VideoAcceptButton;->setEnabled(Z)V

    .line 42
    return-void

    .line 41
    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method


# virtual methods
.method public a(Lcom/instagram/creation/video/a/e;)V
    .locals 0
    .parameter

    .prologue
    .line 36
    iput-object p1, p0, Lcom/instagram/creation/video/ui/VideoAcceptButton;->a:Lcom/instagram/creation/video/a/e;

    .line 37
    invoke-direct {p0}, Lcom/instagram/creation/video/ui/VideoAcceptButton;->a()V

    .line 38
    return-void
.end method
